package com.example.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

@Getter
@AllArgsConstructor
public enum MouldStatusEnum {

    WeiShenHe("未审核"),
    YiZuoFei("已作废"),
    YiBaoFei("已报废"),
    KaiMoZhong("开模中"),
    YiShenHe("已审核"),
    YiLingYong("已领用"),
    DaiLingYong("待领用"),
    DaiGuiHuan("待归还"),
    GuiHuanDaiQueRen("归还待确认"),
    XianZhi("闲置"),
    YiTingYong("已停用"),
    ShiYongZhong("使用中");

    private final String value;

    // 获取所有枚举值的静态方法
    public static List<String> getAllStatuses() {
        return Arrays.stream(MouldStatusEnum.values())  // 获取所有枚举常量
                .map(MouldStatusEnum::getValue)    // 获取每个枚举的值
                .collect(Collectors.toList());     // 转换成 List
    }

}
